<template>
    <el-table
        :data="list"
        @row-click="handleRowClick"
        max-height="180"
        highlight-current-row
        class="normal-el-table"
        border
        header-align="center"
    >
        <el-table-column type="index" label="序号" align="center" width="60"></el-table-column>
        <el-table-column prop="docuCode" label="单证代码" align="center"></el-table-column>
        <el-table-column prop="certCode" label="单证编号" align="center"></el-table-column>
    </el-table>
</template>
<script>
export default {
    props: {
        list: {
            type: Array,
            default: function () {
                return []
            }
        }
    },
    methods: {
        handleRowClick (row, column, event) {
            this.$emit('row-click', row, column, event)
        }
    }
}
</script>
